//
//  Pacienti.m
//  iDent
//
//  Created by Marius Corega on 5/26/09.
//  Copyright 2009 Marius Corega. All rights reserved.
//

#import "Pacienti.h"


@implementation Pacienti

@synthesize medicID;

- (id)initWithXMLData: (NSData*) data
{
	self = [super initWithXMLData:data tableName:@"pacienti" elementName:@"pacient"];
//	[parser release];
	
	return self;
}

-(id)initWithServerURL:(NSURL*) url
{
	self = [self initWithServerURL:url tableName:@"pacienti"];
	notification = @"PacientiLoaded";
	return self;
}

-(BOOL)load
{
	//[_postDict setobj setOb:medicID forKey:@"medic"];
	[_postDict setObject:medicID forKey:@"medic"];
	
	
	return [super load];
}

-(void)loadAsync
{
	//[_postDict setobj setOb:medicID forKey:@"medic"];
	[_postDict setObject:medicID forKey:@"medic"];
	
	
	[super loadAsync];
}


- (NSMutableArray*)pacienti
{
	return _elemente;
}




@end
